package com.example.myapplication;

public class Fruit {
    public String name;
    public Integer price;


    public Fruit(String name, Double price) {
        this.name = name;
        this.price = price.intValue();//类型确认
    }
}